#include <iostream>

using namespace std;

double power(double x, int n)
{
    double val = 1.0;
    while (n--)
        val*=x;
    return val;
}

int main()
{
    double pow;
    pow = power(8, 2); //实参形参对应位置传递值
    cout << "Result = " << pow <<endl;
    return 0;
}
